package arraysCommonMethods;

import java.util.Arrays;

/**
 * @ClassName ArraysCopyOf02
 * @Description 数组拷贝2：拷贝指定区间
 * @Author 李明忠
 * @Date 2025/5/21 20:17
 * @Version 1.0
 */
public class ArraysCopyOf02 {
    public static void main(String[] args) {
        int[] arr = {1,2,3,4,5};
        int[] arrCopy = Arrays.copyOfRange(arr,2,5);
        System.out.println(Arrays.toString(arrCopy));
    }
}
